<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of PromoteWidget
 *
 * @author Lawrence
 */
Yii::import('application.models.Product');

class PromoteWidget extends CWidget{
    
    public function run(){
        $product = Product::model()->findAll(array(
            'condition' => 'promote = 2',            
        ));
        
        $this->render('PromoteWidget', array(
            'product' => $product,
        ));
    }
}

?>
